@import './styles/reset.scss';
@import './styles/mixins.scss';
@import '../taro-ui/src/style/components/article.scss';

#app {
  background-color: #f8f8f8;
}

.at-frozen {
  position: fixed;
  width: 100%;
}

.page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  //min-height: 100vh;
  background-color: #f8f8f8;
}

view {
  box-sizing: border-box;
}

.no-padding {
  padding: 0;
}

// 实例模板
.example {
  padding: 10px 20px;
  margin-bottom: 10px;

  &:not(:first-child) {
    border-top: 40px solid #f5f5f5;
  }

  &__header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid $color-grey-4;

    &-title {
      color: $color-grey-2;
      font-size: 28px;
    }

    &-note {
      font-size: 24px;
      margin-left: 20px;
      color: $color-grey-3;
    }
  }
}

/**
 * Example 样式
 */
.panel__content {
  &__padding {
    padding: 20px;
  }

  &__blocks {
    display: flex;
    flex-direction: row;
    &__block {
      margin-left: 24px;
    }
  }

  &__item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;

    &:last-child {
      margin-bottom: 0;
    }

    .subitem {
      //display: inline-block;
      margin-left: 24px;
    }

    &__desc {
      margin-bottom: 12px;
      color: #333;
      font-size: 24px;
    }
  }
}

.doc-body {
  //min-height: calc(100vh - 180px);
  background: #fff;
  //box-shadow: 0 26px 163px 0 rgba(0, 0, 0, 0.11);
  padding-bottom: 60px;
  /*postcss-pxtransform rn eject enable*/
  padding-bottom: calc(constant(safe-area-inset-bottom) + 60px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 60px);
  /*postcss-pxtransform rn eject disable*/

  &__panel {
    margin: 32px 0 56px;

    &__title {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin-bottom: 50px;
      padding-left: 20px;
      margin-left: 20px;
      //height: 40px;
      //line-height: 40px;
      border-left-width: 5px;
      border-left-style: solid;
      border-left-color: #6190e8;
      &__text {
        color: #6a6a77;
        font-size: 32px;
        font-weight: bold;
        line-height: 1.5 * 32px;
      }
    }

    &__content {
      padding: 0 20px;

      &.no-padding {
        padding: 0;
      }
    }
  }
}

/* lib */
.strong {
  font-weight: bold;
}

.tc {
  text-align: center;
}

.taro_page {
  min-height: 100%;
  background-color: #f8f8f8;
}

/* page */
.container {
  display: flex;
  padding-bottom: 40px;
  flex-direction: column;
  min-height: 100%;
  justify-content: space-between;
  font-size: 32px;
  @include eject(font-family, ' -apple-system-font, Helvetica Neue, Helvetica, sans-serif');
}

.page-head {
  padding: 60px 50px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-head-title {
  //display: inline-block;
  padding: 0 40px 20px 40px;
  font-size: 32px;
  color: #bebebe;
}

.page-head-line {
  margin: 0 auto;
  width: 150px;
  height: 2px;
  background-color: #d8d8d8;
}

.page-head-desc {
  padding-top: 20px;
  color: #9b9b9b;
  font-size: 32px;
}

.page-body {
  width: 100%;
  flex-grow: 1;
  @include eject(overflow-x, hidden);
}

.page-body-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page-body-wording {
  text-align: center;
  padding: 200px 100px;
}

.page-body-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  width: 100%;
  padding: 50px 0 150px 0;
}

.page-body-title {
  margin-bottom: 100px;
  font-size: 32px;
}

.page-body-text {
  font-size: 30px;
  line-height: 26px;
  color: #ccc;
}

.page-body-text-small {
  font-size: 24px;
  color: #000;
  margin-bottom: 100px;
}

.page-foot {
  margin: 100px 0 30px 0;
  text-align: center;
  color: #1aad19;
  font-size: 0;
}

.icon-foot {
  width: 152px;
  height: 23px;
}

.page-section {
  width: 100%;
  text-align: center;
  margin-bottom: 60px;
}

.page-section_center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-section:last-child {
  margin-bottom: 0;
}

.page-section-gap {
  @include eject(box-sizing, border-box);
  padding: 0 30px;
}

.page-section-spacing {
  @include eject(box-sizing, border-box);
  padding: 0 80px;
}

.page-section-spacing-reset {
  padding: 0 30px;
}

.page-section-title {
  font-size: 28px;
  color: #999999;
  margin-bottom: 10px;
  padding-left: 30px;
  padding-right: 30px;
}

.page-section-gap .page-section-title {
  padding-left: 0;
  padding-right: 0;
}

.page-section-ctn {
}

/* widget */
.btn-area {
  margin-top: 60px;
  @include eject(box-sizing, border-box);
  width: 100%;
  padding: 0 30px;
}

.image-plus {
  width: 150px;
  height: 150px;
  border: 2px solid #d9d9d9;
  position: relative;
}

.image-plus-nb {
  border: 0;
}

.image-plus-text {
  color: #888888;
  font-size: 28px;
}

.image-plus-horizontal {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #d9d9d9;
  width: 4px;
  height: 80px;
  @include eject(transform, translate(-50%, -50%));
}

.image-plus-vertical {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #d9d9d9;
  width: 80px;
  height: 4px;
  @include eject(transform, translate(-50%, -50%));
}

.demo-text-1 {
  position: relative;
  align-items: center;
  justify-content: center;
  background-color: #1aad19;
  color: #ffffff;
  font-size: 36px;
}

.demo-text-1:before {
  content: 'A';
  position: absolute;
  top: 50%;
  left: 50%;
  @include eject(transform, translate(-50%, -50%));
}

.demo-text-2 {
  position: relative;
  align-items: center;
  justify-content: center;
  background-color: #2782d7;
  color: #ffffff;
  font-size: 36px;
}

.demo-text-2:before {
  content: 'B';
  position: absolute;
  top: 50%;
  left: 50%;
  @include eject(transform, translate(-50%, -50%));
}

.demo-text-3 {
  position: relative;
  align-items: center;
  justify-content: center;
  background-color: red;
  color: #353535;
  font-size: 36px;
}

.demo-text-3:before {
  content: 'C';
  position: absolute;
  top: 50%;
  left: 50%;
  @include eject(transform, translate(-50%, -50%));
}

.wxapp-block {
  text-align: center;
  .sub-title {
    //display: inline-block;
    padding: 60px 50px 10px;
    margin-bottom: 40px;
    font-size: 0.68267rem;
    color: #bebebe;
    border-bottom: 1px solid #d8d8d8;
  }
}

// components pages style

.components-page {
  font-size: 32px;
  &__body {
    padding: 0 40px;
  }
}
.example {
  margin-bottom: 60px;
  &-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    &-text {
      font-size: 34px;
      color: #999;
    }
  }
  &-body {

  }
}
